
/* Custom Dropdown */
.kb-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-dropdown {
  position: relative;
  min-width: 160px;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.2s;
}

.dropdown-trigger:hover {
  border-color: var(--text-secondary);
  background-color: rgba(255,255,255,0.05);
}

.dropdown-trigger svg {
  transition: transform 0.2s;
  color: var(--text-secondary);
}

.custom-dropdown.open .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 240px; /* Wider to show details */
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--accent);
  color: white;
}
.dropdown-item:hover .kb-meta-mini { color: rgba(255,255,255,0.8); }

.dropdown-item.active {
  background-color: rgba(47, 129, 247, 0.15);
  color: var(--accent);
}

.kb-info-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kb-name-mini { font-weight: 500; font-size: 0.9rem; }
.kb-meta-mini { font-size: 0.75rem; color: var(--text-secondary); }


